snippet imc
	import $1$0 from 'components/${1:foo}/$1'
snippet wa
	window.alert($0)
snippet wahi
	window.alert('hi')
snippet waj
	window.alert(JSON.stringify(${1:this.}$2))
snippet vl
	console.log($0)
snippet vlj
	console.log(JSON.stringify(${1:this.}$2))
snippet rn
	return $0
snippet lg
	console.log('$1: ', ${1:foo})
snippet t.
	this.$0
snippet $
	this.$$0
snippet $s
	this.$store.state.
snippet $c
	this.$store.commit('$0')
snippet $ce
	this.$store.commit('$0', e.target.value)
snippet $p
	this.$store.dispatch('$0')
snippet $pe
	this.$store.commit('$0', e.target.value)
snippet fe
	$0forEach(($1) => {
	})
snippet )
	($1) {
		$0
	}
snippet ),
	($1) {
		$0
	},

snippet >
	$0(($1) => {
	})
snippet vif
	if (${1:true}) {
		$0
	}
snippet vfn
	${1:method}($2) {
		$0
	},
snippet vs.post
	let postJson = {
		$0
	}
	this.$http.post('/${1:path}', postJson).then((resp) => {
		if (resp.body.code === 1) {
			console.log(JSON.stringify(resp))
			window.alert(resp)
		}
	})
snippet vs.get
	this.$http.get('${1:/api}/${2:foo}').then(response => {
		let body = response.body
		this.$2 = body.data
	}, response => {
	})

snippet axios.get
	this.$axios.get('/${1:path}')
	.then(function (resp) {
		console.log(JSON.stringify(resp.data))
	})
	.catch(function (err) {
		console.log(err)
	})

snippet ax.post
	this.$axios.post('/dispatcher', {
		path: '/${1:path}',
		method: 'POST',
		data: {
			${2:key}: '${3:val}'
		}
	})
	.then(function (resp) {
		console.log(JSON.stringify(resp.data))
	})
	.catch(function (err) {
		console.log(err)
	})

snippet ax.get
	this.$axios.post('/dispatcher', {
		path: '/${1:path}',
		method: 'GET',
		data: {}
	})
	.then(function (resp) {
		console.log(JSON.stringify(resp.data))
	})
	.catch(function (err) {
		console.log(err)
	})

snippet as.post
	async ${1:funcName} () {
		let result = await this.$axios.post('/dispatcher', {
			path: '/${2:path}',
			method: 'POST',
			data: {
				${2:key}: '${3:val}'
			}
		})
		console.log(JSON.stringify(result.data))
	}$0

snippet as.get
	async ${1:funcName} () {
		let result = this.$axios.post('/dispatcher', {
			path: '/${2:path}',
			method: 'GET',
			data: {}
		})
		console.log(JSON.stringify(result.data))
	}$0

